package com.tbit.uqbike.constant;

import org.bouncycastle.pqc.crypto.newhope.NHOtherInfoGenerator;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author HZW
 * @ClassName RefundConstant
 * @Description 退款状态常量
 * @date 2022/4/26 16:37
 * @Version 1.0
 */
public class RefundConstant {
    /**退款类型*/
    /**
     * 余额退款
     */
    public static final Integer refund_pay = 0;
    /**
     * 免押卡
     */
    public static final Integer refund_Mem = 1;
    /**
     * 骑行卡
     */
    public static final Integer refund_rideCard = 2;
    /**
     * 充值结束订单
     */
    public static final Integer refund_returnBike = 3;
    /**
     * vip会员卡
     */
    public static final Integer refund_vip = 4;
    /**
     * 优惠券套餐
     */
    public static final Integer refund_meal = 5;
    /**
     * 骑行订单退款到余额
     */
    public static final Integer refund_ride_balance = 6;

    /**
     * 押金
     */
    public static final Integer refund_deposit = -1;

    //退款中
    public static final Integer REFUNDIND = 0;
    //退款失败
    public static final Integer REFUND_FAIL = 2;
    //退款成功
    public static final Integer REFUND_SUCCESS = 1;

    //退款接口返回的退款金额名
    public static final String REFUND_MONEY_KEY = "refundMoney";

    //退款接口返回的退款总单号名
    public static final String REFUND_BUSINESS_NO = "refundBusinessNO";

    //退款找不到退款单
    public static final Integer NOT_FIND_REFUND_ORDER_CODE = 1001;
    public static final String NOT_FIND_REFUND_ORDER_MSG = "找不到退款单";

    //退款成功
    public static final Integer REFUND_SUCCESS_CODE = 2001;
    public static final String REFUND_SUCCESS_MSG = "退款成功";
    //退款中
    public static final Integer REFUND_TIME_OUT_CODE = 3001;
    public static final String REFUND_TIME_OUT_MSG = "退款操作超时！建议您过段时间后刷新页面查看余额变化。";

    public static final Map<Integer,String> refundMagMap = new HashMap<Integer,String>(){{
       put(NOT_FIND_REFUND_ORDER_CODE,NOT_FIND_REFUND_ORDER_MSG);
       put(REFUND_SUCCESS_CODE,REFUND_SUCCESS_MSG);
       put(REFUND_TIME_OUT_CODE,REFUND_TIME_OUT_MSG);
    }};
}
